package com.jackie.coupon.customer.dao;

import com.jackie.coupon.customer.dao.entity.Coupon;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * CouponDao
 *
 * @author Jackie Hou
 * @date 2023/11/18 23:56
 * @version 1.0
 */
public interface CouponDao extends JpaRepository<Coupon, Long> {


    long countByUserIdAndTemplateId(Long userId, Long templateId);
}
